import { http } from '@/utils/http/axios';

//获取table
export function getTableList(params) {
  return http.request({
    url: '/teacher/teacher_exam/list',
    method: 'get',
    params,
  });
}

export function getExam(params) {
  return http.request({
    url: '/teacher/teacher_exam/getExam',
    method: 'get',
    params,
  });
}

export function deleteExam(params) {
  return http.request({
    url: '/teacher/teacher_exam/delete',
    method: 'get',
    params,
  });
}

export function countExam(params) {
  return http.request({
    url: '/teacher/teacher_exam/listStudentExam',
    method: 'get',
    params,
  });
}

export function getStudentAnswer(params) {
  return http.request({
    url: '/teacher/teacher_exam/getStudentExam',
    method: 'get',
    params,
  });
}

export function getQuestionCount(params) {
  return http.request({
    url: '/teacher/teacher_exam/getQuestionCount',
    method: 'get',
    params,
  });
}

export function updateStudentAnswer(params) {
  return http.request({
    url: '/teacher/teacher_exam/correctSingalExam',
    method: 'post',
    params,
  });
}